package methodDemo;

/**
 * @author: snail_mount
 * @date: 20/1/20 2:10
 * @description: 需求1：定义一个方法，该方法接收一个参数，判断该数据是否是偶数，并返回真假值
 */
public class ReturnWithReference {
    public static void main(String[] args) {
        int a = 9;
        boolean flag = isEvenNumber(a);
        System.out.println(flag);
    }

    private static boolean isEvenNumber(int a) {
        if (a % 2 == 0) {
            return true;
        } else {
            return false;
        }
    }
}
